<?php

defined('_JEXEC') or die('Restricted access');
JHtml::_('behavior.tooltip');
JHtml::_('behavior.formvalidation');


?>
<form action="<?php echo JRoute::_('index.php?option=com_link&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="link-form" class="form-validate" enctype="multipart/form-data">

	<div class="row-fluid">
		<div class="span10 form-horizontal">

		<fieldset>
		<ul class="nav nav-tabs">
			<li class="active">
            	<a href="#details" data-toggle="tab">
					<?php echo empty($this->item->id) ? JText::_('New') : JText::sprintf('Edit', $this->item->id); ?></a>
            </li>
		</ul>
		<div class="tab-content">
			<div class="tab-pane active" id="details">
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('title'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('title'); ?></div>
				</div>
            </div>
            <div class="tab-pane active" id="details">
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('link'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('link'); ?></div>
				</div>
            </div>
            <div class="tab-pane active" id="details">
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('category'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('category'); ?></div>
				</div>
            </div>
            <div class="tab-pane active" id="details">
				<div class="control-group">
					<div class="control-label"><?php echo $this->form->getLabel('published'); ?></div>
					<div class="controls"><?php echo $this->form->getInput('published'); ?></div>
				</div>
            </div>
			<input type="hidden" name="task" value="" />
			<?php echo JHtml::_('form.token'); ?>
		</div>
	</div>


</form>
